🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / settings / src / commonTest / kotlin / org / meshtastic / feature / settings / debugging / LogFormatterTest.kt
Displaying Raw • Download
feature/settings/src/commonTest/kotlin/org/meshtastic/feature/settings/debugging/LogFormatterTest.kt renovate/actions-setup-java-5.x (f17e586c) Text, 1.59 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.settings.debugging
Tff7b72import T7ee787kotlin.test.Test
Tff7b72import T7ee787kotlin.test.assertTrue
Tff7b72class T56d364LogFormatterTest Tb4b4b4{
Tf0883e@Test
Tff7b72fun Td2a8ff`formatLogsTo formats and redacts correctly`Tb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3logs Tff7b72=
Te6edf3listOfTb4b4b4(
Te6edf3DebugViewModelTb4b4b4.Te6edf3UiMeshLogTb4b4b4(
Te6edf3uuid Tff7b72= Ta5d6ff"Ta5d6ff1Ta5d6ff"Tb4b4b4,
Te6edf3messageType Tff7b72= Ta5d6ff"Ta5d6ffPacketTa5d6ff"Tb4b4b4,
Te6edf3formattedReceivedDate Tff7b72= Ta5d6ff"Ta5d6ff2026-03-25Ta5d6ff"Tb4b4b4,
Te6edf3logMessage Tff7b72= Ta5d6ff"Ta5d6ffHelloTa5d6ff"Tb4b4b4,
Te6edf3decodedPayload Tff7b72= Ta5d6ff"Ta5d6ffsession_passkey: secretTa5d6ff\Ta5d6ffnother: valueTa5d6ff"Tb4b4b4,
Tb4b4b4)Tb4b4b4,
Tb4b4b4)
Tff7b72val Te6edf3out Tff7b72= Te6edf3StringBuilderTb4b4b4(Tb4b4b4)
Te6edf3formatLogsToTb4b4b4(Tff7b72outTb4b4b4, Te6edf3logsTb4b4b4)
Tff7b72val Te6edf3result Tff7b72= Tff7b72outTb4b4b4.Te6edf3toStringTb4b4b4(Tb4b4b4)
Te6edf3assertTrueTb4b4b4(Te6edf3resultTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ff2026-03-25 [Packet]Ta5d6ff"Tb4b4b4)Tb4b4b4)
Te6edf3assertTrueTb4b4b4(Te6edf3resultTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffHelloTa5d6ff"Tb4b4b4)Tb4b4b4)
Te6edf3assertTrueTb4b4b4(Te6edf3resultTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffsession_passkey:<redacted>Ta5d6ff"Tb4b4b4)Tb4b4b4)
Te6edf3assertTrueTb4b4b4(Te6edf3resultTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffother: valueTa5d6ff"Tb4b4b4)Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.12s